﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeWork
{
    class Demo2
    {
        public static void FourNum() {
            int qian, bai, shi, ge;
            int num;
            Console.WriteLine("请输入一个四位数：");
            string temp = Console.ReadLine();
            num = int.Parse(temp);
            //1234
            qian = num / 1000;
            bai = num / 100 % 10;
            shi = num / 10 % 10;
            ge = num % 10;
            Console.WriteLine("千位"+qian + "千位" + bai + "千位" + shi + "千位" + ge);
            Console.ReadLine();
        }
    }
}
